﻿using Bigway.Common.Models.DbModels;
using SqlSugar;

namespace Benefactor.Models.DbModels;

public class RefererCommissionRecord: DeletableEntity
{
    [SugarColumn(IsNullable = false)]
    public string RefererCommissionId { get; set; }

    [SugarColumn(IsNullable = false)]
    public string BenefitsCardOrderId { get; set; }

    [SugarColumn(IsNullable = false)]
    public string RefererAccount { get; set; }

    [SugarColumn(IsNullable = false)]
    public string BuyerAccount { get; set; }

    [SugarColumn(IsNullable = false)]
    public double RefererFee { get; set; }

    public DateTime RefererFeePaidTime { get; set; }

    [Navigate(NavigateType.OneToOne, nameof(BenefitsCardOrderId))]
    public BenefitsCardOrder? BenefitsCardOrder { get; set; }

    [Navigate(NavigateType.OneToOne, nameof(RefererCommissionId))]
    public RefererCommission? RefererCommission { get; set; }
}